#include<stdio.h>
#include"process.h"
#include<time.h>
#include<stdlib.h>
#include<unistd.h>
const int base = 50;
double total = 2048.0;
double once = 0.1;

void download()
{
double current = 0.0;
while(current < total)
{
    int r = rand()%base + 1;
    double speed = r*once;
    current += speed;
    if(current > total) current = total;

    usleep(50000);
    Process(current,total);
}
printf("\n");

}

int main()
{
    srand(time(NULL));
    download();
     printf("hello process\n");
    return 0;
}
